/*
 * @Author: weikang
 * @Description:
 * @Date: 2023-12-22 11:10:05
 * @LastEditTime: 2023-12-23 17:17:37
 * @FilePath: \env-manager-pc\src\router\modules\contract.ts
 */
import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/contract',
  component: Layout,
  redirect: '/contract/statistics',
  name: 'contract',
  meta: {
    title: '合同管理',
    icon: 'ep:document-checked',
  },
  children: [
    {
      path: 'statistics',
      name: 'contract-statistics',
      component: () => import('@/views/contract/statistics/index.vue'),
      meta: {
        title: '合同统计',
        auth: '/contract/statistics',
      },
    },
    {
      path: 'manager',
      name: 'contract-manager',
      component: () => import('@/views/contract/manager/index.vue'),
      meta: {
        title: '合同维护',
        auth: '/contract/manager',
      },
    },
  ],
}

export default routes
